package top.iflyoung.cim.biz.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import top.iflyoung.cim.biz.entity.ChatRouteInfo;

import java.util.List;

/**
 * @author liguiyang
 * @description
 * @sine 1.8
 * @date 2021/9/418:32
 **/
public interface ChatRouteInfoService extends IService<ChatRouteInfo> {
    /**
     * 根据用户ID删除信息
     *
     * @param userId
     * @return
     */
    long removeByUserId(Long userId);

    /**
     * 根据用户ID查询出用户连接的服务器
     *
     * @param userId
     * @return
     */
    List<ChatRouteInfo> findByUserId(Long userId);

}
